$(function (){
    //专题的
    $.ajax({
        url: baseNews +'/api/data/tongji/special',
        success:function(res){
            console.log(res);
            if(res.code==0){
                var list = res.data;
                var html =` <tr>
                        <td>${list["1"]}</td>
                        <td>${list["2"]}</td>
                        <td>${list["3"]}</td>
                        <td>${list["-1"]}</td>
                        <td>${list["-2"]}</td>
                        <td>${list["0"]}</td>
                    </tr>`;
                    $(".zt_list").append(html);
                
            }
        }
    })
    //文章的
    $.ajax({
        url: baseNews + '/api/data/tongji/article',
        success: function (res) {
            console.log(res);
            if (res.code == 0) {
                var list = res.data;
                var html = ` <tr>
                        <td>${list['0']}</td>
                        <td>${list['1']}</td>
                        <td>${list['2']}</td>
                        <td>${list['3']}</td>
                        <td>${list['4']}</td>
                        <td>${list['10']}</td>
                        <td>${list['-10']}</td>
                        <td>${list['-1']}</td>
                        <td>${list['-2']}</td>
                    </tr>
                    </tr>`;
                $(".wz_list").append(html);

            }
        }
    })
    //用户注册相关的
    $.ajax({
        url: baseNews + '/api/data/tongji/user',
        success: function (res) {
            console.log(res);
            if (res.code == 0) {
                var list = res.data;
                $(".user_add").html(list["1"]);
                $(".user_now").html(list["2"]);

            }
        }
    })
})